<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>悬赏任务纠纷处理中心</title>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css">
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
        }
        
        :root {
            --primary: #2196F3;
            --primary-dark: #1976D2;
            --primary-light: #E3F2FD;
            --secondary: #FF9800;
            --success: #4CAF50;
            --warning: #FFC107;
            --error: #F44336;
            --dark: #263238;
            --medium: #546E7A;
            --light: #90A4AE;
            --background: #F5F9FC;
            --card-bg: #FFFFFF;
            --border: #E0E0E0;
        }
        
        body {
            background-color: var(--background);
            color: var(--dark);
            max-width: 750px;
            margin: 0 auto;
            padding-bottom: 80px;
        }
        
        /* 顶部导航 */
        .header {
            background: linear-gradient(135deg, var(--primary), var(--primary-dark));
            color: white;
            padding: 15px 20px;
            position: sticky;
            top: 0;
            z-index: 100;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        }
        
        .top-bar {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .back-btn {
            background: rgba(255, 255, 255, 0.2);
            width: 36px;
            height: 36px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 16px;
            color: white;
        }
        
        .page-title {
            font-size: 20px;
            font-weight: bold;
            flex: 1;
            text-align: center;
        }
        
        .action-btn {
            background: rgba(255, 255, 255, 0.2);
            width: 36px;
            height: 36px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 16px;
        }
        
        /* 任务信息卡片 */
        .task-info-card {
            background: var(--card-bg);
            margin: 15px;
            border-radius: 16px;
            padding: 20px;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
            border-left: 4px solid var(--primary);
        }
        
        .task-title {
            font-size: 20px;
            font-weight: bold;
            margin-bottom: 10px;
            color: var(--dark);
        }
        
        .task-meta {
            display: flex;
            justify-content: space-between;
            margin-bottom: 15px;
            padding-bottom: 15px;
            border-bottom: 1px solid var(--border);
        }
        
        .meta-item {
            display: flex;
            flex-direction: column;
        }
        
        .meta-label {
            font-size: 12px;
            color: var(--medium);
            margin-bottom: 5px;
        }
        
        .meta-value {
            font-size: 14px;
            font-weight: 500;
        }
        
        .amount {
            color: var(--error);
            font-weight: bold;
        }
        
        .participants {
            display: flex;
            justify-content: space-between;
            margin-top: 15px;
        }
        
        .participant {
            display: flex;
            align-items: center;
        }
        
        .avatar {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: var(--primary-light);
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--primary);
            font-weight: bold;
            margin-right: 10px;
        }
        
        .participant-info {
            display: flex;
            flex-direction: column;
        }
        
        .role {
            font-size: 12px;
            color: var(--medium);
        }
        
        .name {
            font-weight: 500;
        }
        
        /* 阶段进度 */
        .stages-section {
            margin: 20px 15px;
        }
        
        .section-title {
            font-size: 18px;
            font-weight: bold;
            margin-bottom: 15px;
            position: relative;
            padding-left: 10px;
        }
        
        .section-title::before {
            content: "";
            position: absolute;
            left: 0;
            top: 5px;
            height: 18px;
            width: 4px;
            background: var(--primary);
            border-radius: 2px;
        }
        
        .stages-container {
            background: var(--card-bg);
            border-radius: 16px;
            padding: 20px;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
        }
        
        .stage {
            display: flex;
            padding: 15px 0;
            border-bottom: 1px solid var(--border);
            position: relative;
        }
        
        .stage:last-child {
            border-bottom: none;
        }
        
        .stage-status {
            width: 30px;
            height: 30px;
            border-radius: 50%;
            background: var(--light);
            display: flex;
            align-items: center;
            justify-content: center;
            margin-right: 15px;
            flex-shrink: 0;
            color: white;
        }
        
        .stage-status.completed {
            background: var(--success);
        }
        
        .stage-status.current {
            background: var(--primary);
        }
        
        .stage-status.disputed {
            background: var(--error);
        }
        
        .stage-info {
            flex: 1;
        }
        
        .stage-title {
            font-weight: 500;
            margin-bottom: 5px;
        }
        
        .stage-desc {
            font-size: 14px;
            color: var(--medium);
            margin-bottom: 10px;
        }
        
        .stage-amount {
            font-weight: bold;
            color: var(--success);
        }
        
        .stage-actions {
            display: flex;
            gap: 10px;
            margin-top: 10px;
        }
        
        .btn {
            padding: 8px 15px;
            border-radius: 20px;
            border: none;
            font-size: 14px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.3s ease;
        }
        
        .btn-primary {
            background: var(--primary);
            color: white;
        }
        
        .btn-primary:hover {
            background: var(--primary-dark);
        }
        
        .btn-secondary {
            background: var(--secondary);
            color: white;
        }
        
        .btn-secondary:hover {
            background: #e68a00;
        }
        
        .btn-outline {
            background: transparent;
            border: 1px solid var(--primary);
            color: var(--primary);
        }
        
        .btn-outline:hover {
            background: var(--primary-light);
        }
        
        /* 纠纷处理区域 */
        .dispute-section {
            margin: 20px 15px;
        }
        
        .dispute-container {
            background: var(--card-bg);
            border-radius: 16px;
            padding: 20px;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
        }
        
        .dispute-status {
            display: flex;
            align-items: center;
            padding: 12px;
            background: rgba(244, 67, 54, 0.1);
            border-radius: 10px;
            margin-bottom: 20px;
            color: var(--error);
        }
        
        .dispute-status i {
            margin-right: 10px;
            font-size: 20px;
        }
        
        .dispute-reason {
            margin-bottom: 20px;
        }
        
        .reason-title {
            font-weight: 500;
            margin-bottom: 10px;
        }
        
        .reason-content {
            background: #f9f9f9;
            border-radius: 10px;
            padding: 15px;
            font-size: 14px;
            line-height: 1.6;
        }
        
        .evidence-section {
            margin: 20px 0;
        }
        
        .evidence-title {
            font-weight: 500;
            margin-bottom: 10px;
        }
        
        .evidence-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 10px;
        }
        
        .evidence-item {
            height: 100px;
            border-radius: 10px;
            background: #f5f5f5;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 40px;
            color: var(--medium);
        }
        
        .evidence-item.chat {
            background: rgba(33, 150, 243, 0.1);
            color: var(--primary);
        }
        
        .evidence-item.wechat {
            background: rgba(7, 193, 96, 0.1);
            color: #07C160;
        }
        
        .evidence-item.file {
            background: rgba(255, 152, 0, 0.1);
            color: var(--secondary);
        }
        
        .resolution-actions {
            display: flex;
            flex-direction: column;
            gap: 15px;
            margin-top: 30px;
        }
        
        .action-card {
            background: #f9f9f9;
            border-radius: 12px;
            padding: 20px;
            border-left: 4px solid var(--primary);
        }
        
        .action-title {
            font-weight: 500;
            margin-bottom: 10px;
            display: flex;
            align-items: center;
        }
        
        .action-title i {
            margin-right: 10px;
            font-size: 20px;
            color: var(--primary);
        }
        
        .action-desc {
            font-size: 14px;
            color: var(--medium);
            margin-bottom: 15px;
            line-height: 1.6;
        }
        
        /* 底部操作栏 */
        .action-bar {
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            max-width: 750px;
            margin: 0 auto;
            background: var(--card-bg);
            display: flex;
            justify-content: space-between;
            padding: 15px;
            box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.08);
            z-index: 100;
        }
        
        .action-btn {
            flex: 1;
            padding: 12px;
            border-radius: 10px;
            border: none;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
        }
        
        .action-btn.resolve {
            background: var(--success);
            color: white;
            margin-right: 10px;
        }
        
        .action-btn.dispute {
            background: var(--error);
            color: white;
            margin-left: 10px;
        }
        
        .action-btn.resolve:hover {
            background: #43A047;
        }
        
        .action-btn.dispute:hover {
            background: #E53935;
        }
    </style>
</head>
<body>
    <!-- 顶部导航 -->
    <div class="header">
        <div class="top-bar">
            <a href="#" class="back-btn">
                <i class="fas fa-arrow-left"></i>
            </a>
            <div class="page-title">任务纠纷处理</div>
            <div class="action-btn">
                <i class="fas fa-question-circle"></i>
            </div>
        </div>
    </div>
    
    <!-- 任务信息卡片 -->
    <div class="task-info-card">
        <h2 class="task-title">企业宣传海报设计</h2>
        <div class="task-meta">
            <div class="meta-item">
                <span class="meta-label">任务编号</span>
                <span class="meta-value">TSK20250712001</span>
            </div>
            <div class="meta-item">
                <span class="meta-label">总金额</span>
                <span class="meta-value amount">¥1,500.00</span>
            </div>
            <div class="meta-item">
                <span class="meta-label">当前状态</span>
                <span class="meta-value" style="color: var(--error);">纠纷处理中</span>
            </div>
        </div>
        <div class="participants">
            <div class="participant">
                <div class="avatar">发</div>
                <div class="participant-info">
                    <span class="role">发布方</span>
                    <span class="name">李经理</span>
                </div>
            </div>
            <div class="participant">
                <div class="avatar">执</div>
                <div class="participant-info">
                    <span class="role">执行方</span>
                    <span class="name">张设计师</span>
                </div>
            </div>
        </div>
    </div>
    
    <!-- 阶段进度 -->
    <div class="stages-section">
        <h3 class="section-title">任务阶段与结算</h3>
        <div class="stages-container">
            <div class="stage">
                <div class="stage-status completed">
                    <i class="fas fa-check"></i>
                </div>
                <div class="stage-info">
                    <div class="stage-title">需求确认阶段</div>
                    <div class="stage-desc">双方确认设计需求、风格和交付标准</div>
                    <div class="stage-amount">已结算: ¥300.00</div>
                </div>
            </div>
            
            <div class="stage">
                <div class="stage-status current disputed">
                    <i class="fas fa-exclamation"></i>
                </div>
                <div class="stage-info">
                    <div class="stage-title">初稿设计阶段</div>
                    <div class="stage-desc">设计师提交初稿，客户提出修改意见</div>
                    <div class="stage-amount">待结算: ¥600.00</div>
                    <div class="stage-actions">
                        <button class="btn btn-outline">查看交付内容</button>
                    </div>
                </div>
            </div>
            
            <div class="stage">
                <div class="stage-status">
                    <i class="fas fa-lock"></i>
                </div>
                <div class="stage-info">
                    <div class="stage-title">最终交付阶段</div>
                    <div class="stage-desc">完成修改并交付最终源文件</div>
                    <div class="stage-amount">待结算: ¥600.00</div>
                </div>
            </div>
        </div>
    </div>
    
    <!-- 纠纷处理区域 -->
    <div class="dispute-section">
        <h3 class="section-title">纠纷处理</h3>
        <div class="dispute-container">
            <div class="dispute-status">
                <i class="fas fa-exclamation-triangle"></i>
                <span>执行方对初稿设计阶段提出异议，交易金额已冻结</span>
            </div>
            
            <div class="dispute-reason">
                <div class="reason-title">异议原因</div>
                <div class="reason-content">
                    发布方要求进行第三次大幅修改，超出了任务约定的修改范围（原约定为两次小幅修改）。执行方认为这属于额外工作，应另行计费或增加报酬。
                </div>
            </div>
            
            <div class="evidence-section">
                <div class="evidence-title">相关证据</div>
                <div class="evidence-grid">
                    <div class="evidence-item chat">
                        <i class="fas fa-comments"></i>
                    </div>
                    <div class="evidence-item wechat">
                        <i class="fab fa-weixin"></i>
                    </div>
                    <div class="evidence-item file">
                        <i class="fas fa-file-contract"></i>
                    </div>
                </div>
            </div>
            
            <div class="resolution-actions">
                <div class="action-card">
                    <div class="action-title">
                        <i class="fas fa-comments"></i>
                        双方协商解决
                    </div>
                    <div class="action-desc">
                        平台鼓励双方通过沟通协商解决纠纷。您可以使用内置聊天功能或已有的沟通记录继续协商，达成一致后点击"协商解决"按钮。
                    </div>
                    <button class="btn btn-primary">
                        <i class="fas fa-comment-dots"></i> 打开协商聊天
                    </button>
                </div>
                
                <div class="action-card">
                    <div class="action-title">
                        <i class="fas fa-gavel"></i>
                        申请平台介入
                    </div>
                    <div class="action-desc">
                        如果双方无法达成一致，可以申请平台官方介入仲裁。请提供充分的证据材料，平台将在3个工作日内做出裁决。
                    </div>
                    <button class="btn btn-secondary">
                        <i class="fas fa-hand-paper"></i> 申请平台仲裁
                    </button>
                </div>
            </div>
        </div>
    </div>
    
    <!-- 底部操作栏 -->
    <div class="action-bar">
        <button class="action-btn resolve">
            <i class="fas fa-handshake"></i> 协商解决
        </button>
        <button class="action-btn dispute">
            <i class="fas fa-balance-scale"></i> 坚持申诉
        </button>
    </div>

    <script>
        // 模拟操作功能
        document.querySelector('.btn-primary').addEventListener('click', function() {
            alert('打开协商聊天室，双方可以继续沟通解决纠纷');
        });
        
        document.querySelector('.btn-secondary').addEventListener('click', function() {
            alert('申请平台仲裁，请上传相关证据材料');
        });
        
        document.querySelector('.action-btn.resolve').addEventListener('click', function() {
            if(confirm('确认纠纷已协商解决？此操作将解冻资金并按协商方案结算。')) {
                alert('纠纷已解决！资金已按协商方案结算。');
            }
        });
        
        document.querySelector('.action-btn.dispute').addEventListener('click', function() {
            if(confirm('确认坚持申诉？此操作将正式申请平台介入仲裁。')) {
                alert('已提交仲裁申请，平台将在3个工作日内处理。');
            }
        });
        
        // 证据查看功能
        document.querySelectorAll('.evidence-item').forEach(item => {
            item.addEventListener('click', function() {
                const types = {
                    'chat': '平台聊天记录',
                    'wechat': '微信沟通截图',
                    'file': '原始需求合同'
                };
                const type = Array.from(this.classList)
                                .filter(cls => cls !== 'evidence-item')[0];
                alert(`查看证据: ${types[type]}`);
            });
        });
    </script>
</body>
</html>